import request from '@/utils/request'

export function fetchTagPage(query) {
  return request({
    url: '/insightEdu/resourcetag/page',
    method: 'get',
    params: query
  })
}


export function fetchTagList(query) {
  return request({
    url: '/insightEdu/resourcetag/tag/list',
    method: 'get',
    params: query
  })
}

export function getTagObj(id) {
  return request({
    url: '/insightEdu/resourcetag/' + id,
    method: 'get'
  })
}

export function addTagObj(obj) {
  return request({
    url: '/insightEdu/resourcetag',
    method: 'post',
    data: obj
  })
}

export function putTagObj(obj) {
  return request({
    url: '/insightEdu/resourcetag',
    method: 'put',
    data: obj
  })
}

export function delTagObj(id) {
  return request({
    url: '/insightEdu/resourcetag/' + id,
    method: 'delete'
  })
}


